#project (myfirstplayer)

#cmake_minimum_required (VERSION 2.4.0)

FIND_PACKAGE (Qt4 REQUIRED)
INCLUDE (${QT_USE_FILE})

SET( USE_Q_OBJECT 
	ControlBoard.h
	TimerSlider.h
)

QT4_WRAP_CPP( MOC_HDR ${USE_Q_OBJECT} )

SET( OTHER 
	ControlBoard.cpp
	TimerSlider.cpp
	Decoder_xine.cpp
	Debug.cpp
)

INCLUDE(UsePkgConfig)
PKGCONFIG(libxine XINE_INCLUDE_DIR XINE_LINK_DIR XINE_LINK_FLAGS XINE_CFLAGS)

IF(XINE_LINK_FLAGS)
	MESSAGE( STATUS "Found xine" )
ENDIF(XINE_LINK_FLAGS)

ADD_EXECUTABLE (myfirstplayer main.cpp ${OTHER} ${MOC_HDR})
TARGET_LINK_LIBRARIES (myfirstplayer ${QT_LIBRARIES} ${QT_QTGUI_LIBRARY}
	${XINE_LINK_FLAGS})

